prepare-root: Fix crash if no valid signatures
authorAlexander Larsson <alexl@redhat.com>
Mon, 20 Oct 2025 10:26:50 +0000 (12:26 +0200)
committerAlexander Larsson <alexl@redhat.com>
Mon, 20 Oct 2025 10:26:50 +0000 (12:26 +0200)
commitceb7193e831688d46179dc913f110ce9197d5906
tree839f41f15fe54314855c53e3a51198c0f95244ae
parent742f00fce200cdcb90dce5a45b9f7df345176df0
prepare-root: Fix crash if no valid signatures

We didn't set error if there were zero valid signatures, which caused
a crash prefixing the error. While fixing this, the error messages were
slightly reworded to make it nicer.
src/libotcore/otcore-prepare-root.c